package com.example.demo.config;

import java.io.InputStream;

/**
 * @ClassName TemplateLoader
 * @Description 模版加载器
 * @Author MingChang.Wei
 * @Date 2024/9/19
 **/
public class TemplateLoader {
    public static InputStream loadTemplate(String templateName) {
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        return classLoader.getResourceAsStream(templateName);
    }
}
